package com.shop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 地区 实体类。
 *
 * @author 彭新才
 * @since 2024-10-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "地区")
@Table(value = "shop_area")
public class ShopArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description = "")
    private Long id;

    /**
     * 地区邮编
     */
    @Schema(description = "地区邮编")
    private Long code;

    /**
     * 父地区邮编
     */
    @Schema(description = "父地区邮编")
    private Long parentCode;

    /**
     * 地区名
     */
    @Schema(description = "地区名")
    private String name;

    /**
     * 地区层级
     */
    @Schema(description = "地区层级")
    private Integer level;

    /**
     * 经度
     */
    @Schema(description = "经度")
    private BigDecimal lng;

    /**
     * 纬度
     */
    @Schema(description = "纬度")
    private BigDecimal lat;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 是否启用（0否，1是）
     */
    @Schema(description = "是否启用（0否，1是）")
    private Integer isEnable;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Timestamp createdTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Timestamp updatedTime;

}
